﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Details.aspx.cs" Inherits="Work.UI.Web.Forms.Admin.Vacancy.Details" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentHeader" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:ObjectDataSource ID="odsVacancy" runat="server" TypeName="Work.BL.Hibernate.Managers.HVacancyManager"
        DataObjectTypeName="Work.BL.POCOs.VacancyPOCO" SelectMethod="GetVacancyById"
        OnObjectCreating="odsVacancyObjectCreating">
        <SelectParameters>
            <asp:QueryStringParameter Name="Id" QueryStringField="Id" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>

    <asp:FormView runat="server" ID="frvVacancy" 
                DataSourceID="odsVacancy"
                DataKeyNames="Id">

        <ItemTemplate>

            <table class="table_details">
                <tr>
                    <th>Заголовок</th>
                    <td><%# Eval("Title")%></td>
                </tr>
                <tr>
                    <th>Зарплата</th>
                    <td><%# Eval("Salary")%></td>
                </tr>
                <tr>
                    <th>Посада</th>
                    <td><%# Eval("Post")%></td>
                </tr>
                <tr>
                    <th>Вимоги</th>
                    <td><%# Eval("Requirements")%></td>
                </tr>
                <tr>
                    <th>Додаткова інформація</th>
                    <td><%# Eval("Description")%></td>
                </tr>
            </table>

        </ItemTemplate>

    </asp:FormView>
    <asp:HyperLink ID="HyperLink2" NavigateUrl="~/Admin/Vacancy/Default.aspx" runat="server" CssClass="button1">
            <strong>Назад</strong>
    </asp:HyperLink>
</asp:Content>
